package com.platform.modules.quality.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;


@Data
@TableName("QLY_INSPECTION")
@ApiModel("质量巡查")
public class QlyInspectionEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private String insId;

    private String prjId;

    @ApiModelProperty("一级工区ID")
    private String workAreaParentId;
    
    @ApiModelProperty("问题数量")
    private Integer queNum;
    
    @ApiModelProperty("问题状态：1待整改 | 2待复查 | 3已完成 |  4超期未整改")
    private String queStatus;

    @ApiModelProperty("整改期限")
    private String reformExpirationDate;
    @ApiModelProperty("罚款标志 0-不罚款 1-罚款")
    private Integer fineFlag;
    @ApiModelProperty("罚款金额")
    private Float fineAmount;
    @ApiModelProperty("罚款说明")
    private String fineDesc;
    @ApiModelProperty("创建人（巡查人）")
    private String createUserId;
    @ApiModelProperty("创建时间（巡查时间）")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;
    @ApiModelProperty("整改时间")
    private String reformTime;
    @ApiModelProperty("复查时间")
    private String reviewTime;
    
    @ApiModelProperty("信息点数据")
    private String poiData;
    @ApiModelProperty("图纸文件ID")
    private String attId;
    @ApiModelProperty("超期时长：大于0表示曾经超期时长")
    private String overdueDays;
    
    /**
     * 1、以下字段来自 PRJ_PROJECT 表
     */
    @TableField(exist = false)
    private String prjName;
    @TableField(exist = false)
    private String buildCorpName;
    @TableField(exist = false)
    private String sgCorpName;
    @TableField(exist = false)
    private String provinceNum;
    @TableField(exist = false)
    private String cityNum;
    @TableField(exist = false)
    private String countyNum;
    
    
    @TableField(exist = false)
    private String createUserName;
    @TableField(exist = false)
    private String reformUserName;
    @TableField(exist = false)
    private String workAreaParentName;
    
}
